import Https from "@/utils/Https";

export const queryLabelReq = async (params) =>
  await Https.post("/venue/label/labelList", {
    current: 1,
    pageSize: 10000,
  });

export const queryPageDataReq = async (params) =>
  await Https.post("/venue/path/pathList", params);

export const queryAllListReq = async (params) =>
  await Https.post("/course/sched/venueAllList", params);

export const addItemReq = async (params) =>
  await Https.post("/venue/path/addPath", params, true);

export const updateItemReq = async (params) =>
  await Https.post("/venue/path/updatePath", params, true);

export const deleteItemReq = async (params) =>
  await Https.post("/venue/path/deletePath", params, true);

export const queryItemInfoReq = async (params) =>
  await Https.post("/venue/path/pathDetail", params);

export const toggleStateReq = async (params) =>
  await Https.post("/tables", params, true);

// 路径指引
export const queryPageDataReq2 = async (params) =>
  await Https.post("/venue/pathguide/pathGuideList", params);

export const addItemReq2 = async (params) =>
  await Https.post("/venue/pathguide/addPathGuide", params, true);
export const updateItemReq2 = async (params) =>
  await Https.post("/venue/pathguide/updatePathGuide", params, true);

export const deleteItemReq2 = async (params) =>
  await Https.post("/venue/pathguide/deletePathGuide", params, true);
